var e = {
    ali: function(e, s) {
        if (!e || /^\s+$/.test(e)) return "";
        if (/x-oss-process=/.test(e)) return e;
        var t = wx.getSystemInfoSync(), r = t.pixelRatio || 2, i = s || t.screenWidth || 375, a = e;
        return a.indexOf("?") > -1 ? a += "&" : a += "?", /\.gif/i.test(a) ? a += "x-oss-process=image/resize,w_" + parseInt(i * r) : /\.png/i.test(a) ? a += "x-oss-process=image/format,png/interlace,1,image/resize,w_" + parseInt(i * r) : a += "x-oss-process=image/format,jpg/interlace,1,image/resize,w_" + parseInt(i * r), 
        a += "/quality,Q_60";
    }
};

module.exports = {
    Image: e
};